package com.mywiki.controller;
import com.mywiki.domain.Demo;
import com.mywiki.domain.Test;
import com.mywiki.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * describe:
 *
 * @author: robin
 * @date 2024/1/19 11:19
 */
@RestController
@RequestMapping("/demo")
public class DemoController {

    @Autowired
    private DemoService demoService;

    @GetMapping("/list")
    public List<Demo> list(){
        List<Demo> list = demoService.list();
        return list;
    }
    
}
